<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<link rel="stylesheet" type="text/css" href="css/jquery.tagsinput.css" />
<style>
body {
	padding-top: 60px;
	/* 60px to make the container go all the way to the bottom of the topbar */
}
</style>

<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<div class="row">
				<a href="#" class="brand">美味书签</a>
				<form class="navbar-search pull-left" action="search" method="post">
					<input name="keyword" type="text" class="search-query" placeholder="Search">
				</form>

				<s:if test="#session.sessionUser != null">
					<ul class="nav nav-pills pull-right">
						<li class="dropdown"><a class="dropdown-toggle"
							data-toggle="dropdown" href="#">我的信息<b class="caret"></b>
						</a>
							<ul class="dropdown-menu">
								<li><a
									href="listhome?userId=<s:property value="#session.sessionUser.id"/>">我的链接</a></li>
								<li><a
									href="feedhome?userId=<s:property value="#session.sessionUser.id"/>">我的收藏</a></li>
								<li><a href="setting">设置</a></li>
								<li><a href="logout">注销</a></li>
							</ul></li>
						<li><a href="#addLink" data-toggle="modal">添加链接</a></li>
					</ul>
				</s:if>
				<s:else>
					<ul class="nav pull-right">
						<li class=""><a href="register.jsp">注册</a></li>
						<li class=""><a href="login.jsp">登录</a></li>
					</ul>
				</s:else>
			</div>
		</div>
	</div>
</div>

<!-- 添加书签的第一个弹出框 -->
<div id="addLink" class="modal hide fade">
	<div class="modal-header">
		<button class="close" data-dismiss="modal">×</button>
		<h3>添加书签</h3>
	</div>
	<div class="modal-body">
		<label title="" for="url">请添加书签的 URL</label> <input id="linkUrl"
			type="text" class="span6" placeholder="url">
	</div>
	<div class="modal-footer">
		<a class="btn" data-dismiss="modal" href="#">关闭</a> <a id="submitUrl"
			class="btn btn-primary">保存</a>
	</div>
</div>

<!-- 添加书签的第二个弹出框 -->
<div id="saveLink" class="modal hide fade"></div>